package com.huixuebao.settle.service;

import com.huixuebao.common.bean.ApiResult;
import com.huixuebao.common.bean.ResponseData;
import com.huixuebao.settle.dto.InsureOrderDTO;
import com.huixuebao.settle.dto.OrderDTO;
import com.huixuebao.settle.entity.InsuredOrderEntity;

import java.text.ParseException;
import java.util.List;


public interface InsureOrderService {

    ResponseData submitOrder(OrderDTO dto) throws ParseException;

    void updateOrder(InsureOrderDTO dto);


    /**
     * 根据用户ID查询用户保单
     *
     * @param phone
     */
    List<InsuredOrderEntity> listInsuredOrders(String phone);

    /**
     * 更新保单状态
     *
     * @param policyId
     * @return
     */
    ApiResult updateSettleState(String policyId, String settleState);

}
